# i = 1
# while i <= 9:
#     # 处理列数
#     j = 1
#     while j <= i:
#         print(j,'*',i,'=',j*i,end='  ')
#         # 令列数加1
#         j += 1
#     print('\n')
#     # 令行数加1
#     i += 1
for i in range(1,10):
    for j in range(1,i+1):
        # print(j, '*', i, '=', j * i, end='  ')
        # print('%s*%s=%s' % (j,i,j*i), end='  ')
        # print('{0}*{1}={2}'.format(j,i,j*i),end='  ')
        print(f'{j}*{i}={j*i}',end='  ')
    print('\n')
